commit: Don't require a subject
authorMathnerd314 <mathnerd314.gph+hs@gmail.com>
Mon, 23 May 2016 18:49:37 +0000 (12:49 -0600)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 25 May 2016 18:37:47 +0000 (18:37 +0000)
commit80774680e8df8d0fa9da295b981be3d8ba86bc8c
tree7aac73aaec8b26320bd56eb8e0480a8df1115e69
parent5e336333f38fe95f238cb122257776714ba5ed17
commit: Don't require a subject

In practice, a lot of subjects are empty, because the commit date
and branch are sufficient identification. For example, rpm-ostree
does not use subjects. It also doesn't use the command-line ostree
commit tool, so this was not a problem there, but this makes the
behavior consistent.

Also adds a test that empty subjects and omitting the subject
are equivalent. The --timestamp is so that the commits do not
have different timestamps.

Closes: #305
Approved by: cgwalters
src/ostree/ot-builtin-commit.c
tests/basic-test.sh